###########################################
INSTRUCTIONS FOR THE REPLICATION PROCESS
###########################################

This folder contains the files needed to reproduce the results reported in the study: 
Silva, Thiago N. "When Do Different Systems of Government Lead to Similar Power-Sharing? The Case of Government Formation." Political Science Research and Methods.

######
FILES
######

DATA: 

"parl_port_Warwick_Druckman_2006.Rdata": Data on portfolio allocation in parliamentary democracies. Source: Warwick, Paul V., and James N. Druckman. 2006. "The portfolio allocation paradox: An investigation into the nature of a very strong but puzzling relationship." European Journal of Political Research 45(4): 635-665. The following outputs were created using these data: Figure 1; Table A.1. 


"pres_port_Silva_2022.Rdata": The main original data for the empirical analyses conducted in the study. The following outputs were created using these data: Figure 1; Figure 2; Table A.1; Table B.1; Table C.1; Figure D.1; Table E.1; Figure G.1; Figure G.2; Table G.1; Figure G.3; Table G.2; Figure H.1; Table H.1.

"pres_single_gov_Silva_2022.Rdata": Data for conducting the robustness check analysis on single-party government. The following output was created using these data: Table F.1.


Replication codes:

"PSRM_Silva_2022_Replication.R": Replication file (R Script) to generate all tables and figures included in the main text of the study and in the supplementary material.

"ggintfun.R": R function to plot marginal effects from interaction models, as depicted in Figure 2b. Author: Johannes Karreth. Source: https://github.com/jkarreth/JKmisc/blob/master/ggintfun.R. [Accessed on January 25, 2022.]


##########################
# OPERATION SYSTEM AND
# SOFTWARE MODULE
##########################

The code was run on a MacBook Pro 2018, with the following specifications:
Operational system: macOS Monterey, version 12.2.1.
Processor: 2.6 GHz 6-Core IInterl Core i7. 
Memory: 16 GB 2400 MHz DDR4.
Graphics: Intel UHD Graphics 630 1536 MB.

R version 4.1.0 (2021-05-18)Platform: x86_64-apple-darwin17.0 (64-bit)Running under: macOS 12.2.1R packages and versions loaded to run the replication file:
 [1] broom.mixed_0.2.7
 [2] car_3.0-12  
 [3] dplyr_1.0.8 
 [4] MASS_7.3-55
 [5] ggeffects_1.1.1
 [6] ggplot2_3.3.5 
 [7] ggstance_0.3.5  
 [8] ggthemes_4.2.4
 [9] gridExtra_2.3 
[10] jtools_2.1.4 
[11] miceadds_3.11-6
[12] sjPlot_2.8.10  
[13] stargazer_5.2.3 

It took around 35 seconds to complete the replication.
